import React, { useState,useEffect } from "react"

export default function Test() {
  useEffect(() => {
    console.log("test组件挂载/更新了")
    return () => {
      console.log("test卸载了")
    }
  })
  return <div>Test组件</div>
}
